
<?php 
$nav= $html->link('Home',SITE_URL).
 ' :: edit user profile';


	
?>


<fieldset>
    <legend><?php echo $nav;?> </legend>

<center><div id="message" >&nbsp;</div></center>
<?php if($this->Session->read('message')){
	echo '<script>showMessage("addContent","'.$this->Session->read('message').'");</script>';
	$this->Session->delete('message');	
	}?>
<?php if($this->Session->read('error')){
	echo '<script>showMessage("addContent","'.$this->Session->read('error').'",1);</script>';
	$this->Session->delete('error');
}?>

    <form id="adminForm" name="adminForm" method="post" action="<?php echo SITE_URL.$this->params['controller'].'/profile' ?>">
    <?php 
    echo $this->Form->hidden($uses[0].'.id');
		echo $this->Form->hidden($uses[0].'.last_login');
		echo $this->Form->hidden($uses[0].'.view_order');
		echo $this->Form->hidden($uses[0].'.published');
		echo $this->Form->hidden($uses[0].'.username');
		echo $this->Form->hidden($uses[0].'.group_id');
    ?>
	<table border="0" class="form" style="width:100%">
       	<tr>          
       		<td class="label" align="right" width="40%"><?php _resource('full name') ?></td>
       		<td align="left"><?php echo $this->Form->input($uses[0].'.name',array('class'=>'input','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
        <tr>          
       		<td class="label" align="right" width="40%"><?php _resource('username') ?></td>
       		<td align="left"><?php echo $this->Form->input($uses[0].'.username',array('class'=>'input','disabled'=>'disabled','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
        <tr>          
       		<td class="label" align="right" width="40%"><?php _resource('email') ?></td>
       		<td align="left"><?php echo $this->Form->input($uses[0].'.email',array('class'=>'input_require','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
        <tr>          
       		<td class="label" align="right" width="40%"><?php _resource('old password') ?></td>
       		<td align="left"><?php echo $this->Form->password($uses[0].'.oldpass',array('class'=>'input','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
        <tr>          
       		<td class="label" align="right" width="40%"><?php _resource('new password') ?></td>
       		<td align="left"><?php echo $this->Form->password($uses[0].'.newpass',array('class'=>'input','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
        <tr>          
       		<td class="label" align="right" width="40%"><?php _resource('confirm password') ?></td>
       		<td align="left"><?php echo $this->Form->password($uses[0].'.confirmpass',array('class'=>'input','label'=>'','size'=>60,'maxlength'=>255));?></td>           
        </tr>
	</table>
    <div style="width:100%;">
          <div class="button" style="float:right"><a onclick="" href="<?php echo SITE_URL.'/tasks/detail/'.$this->data[$uses[0]]['id']?>" title="<?php echo _resource('close') ?>"  > <span class="icon-32-cancel"> </span></a> </div>         
          <div class="button" style="float:right"><a onclick="adminForm.reset();" href="javascript:;" title="<?php echo _resource('reset') ?>"  > <span class="icon-32-back"> </span></a> </div>          
          <div class="button" style="float:right"><a onclick="adminForm.submit()" href="javascript:;" title="<?php echo _resource('save') ?>"  > <span class="icon-32-save"> </span></a> </div>
    </div>
      </form>
</fieldset>